package com.ruoyi.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Collections;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.mapper.DriverUserMapper;
import com.ruoyi.pojo.DriverUser;
import com.ruoyi.service.DriverUserService;

@Service
public class DriverUserServiceImpl extends ServiceImpl<DriverUserMapper, DriverUser> implements DriverUserService {
    @Autowired
    private DriverUserMapper driverUserMapper;

    @Override
    public List<DriverUser> selectByStates() {
        return driverUserMapper.selectByStates();
    }

    @Override
    public DriverUser selectById(Long id) {
        return driverUserMapper.selectByID(id);
    }
}
